<?php

$popup_id = $_REQUEST['popup_id'];
if($popup_id == '')
{
	header('location: popups.php');
	exit();
}

mysql_query("update popups set estado = 1 where id = ".$popup_id, $conn);
if(mysql_error($conn))
{
	print(mysql_error($conn));
}

header('location: ?page=Popup');
exit();
?>